﻿/*
 * Copyright 2009 José David Tuero Rodríguez

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 * */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace AtmosCreator
{
    /// <summary>
    /// Class used for serialice the configuration from/to the hard disk
    /// </summary>
    public class ConfigurationFile
    {
        /// <summary>
        /// Percentage of a video starting every 15 seconds
        /// </summary>
        private int _vidPer;
        /// <summary>
        /// Seconds after that a video can starts
        /// </summary>
        private int _vidSeconds;

        /// <summary>
        /// Stretch video to window?
        /// </summary>
        private bool _stretch;

        /// <summary>
        /// Game play time (seconds)
        /// </summary>
        private int _gameTime;

        /// <summary>
        /// Min number of seconds before select the chosen one
        /// </summary>
        private int _minChosen;

        /// <summary>
        /// Max number of seconds before select the chosen one
        /// </summary>
        private int _maxChosen;

        /// <summary>
        /// Percentage of videos refering to the chosen one
        /// </summary>
        private int _perChosen;

       

        /// <summary>
        /// Constructor
        /// </summary>
        public ConfigurationFile()
        {

        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public bool Stretch
        {
            get
            {
                return _stretch;
            }
            set
            {
                _stretch = value;
            }
        }


        /// <summary>
        /// get and set methods
        /// </summary>
        public int VidPer
        {
            get
            {
                return _vidPer;
            }
            set
            {
                _vidPer = value;
            }
        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public int VidSeconds
        {
            get
            {
                return _vidSeconds;
            }
            set
            {
                _vidSeconds = value;
            }
        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public int GameTime
        {
            get
            {
                return _gameTime;
            }
            set
            {
                _gameTime = value;
            }
        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public int MinChosen
        {
            get
            {
                return _minChosen;
            }
            set
            {
                _minChosen = value;
            }
        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public int MaxChosen
        {
            get
            {
                return _maxChosen;
            }
            set
            {
                _maxChosen = value;
            }
        }

        /// <summary>
        /// get and set methods
        /// </summary>
        public int PerChosen
        {
            get
            {
                return _perChosen;
            }
            set
            {
                _perChosen = value;
            }
        }


    }
}
